package net.onecloud.onecloud.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import net.onecloud.onecloud.R;
import net.onecloud.onecloud.model.ResultResume;

import java.util.List;

/**
 * Created by zaizai on 16/7/30.
 */
public class ResumeAdapter extends BaseQuickAdapter<ResultResume.DataEntity> {

    public ResumeAdapter() {
        super(R.layout.rv_items_resume, null);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, ResultResume.DataEntity entity) {
        baseViewHolder.setText(R.id.m_rname, entity.getRname())
                .setText(R.id.m_rsex, entity.getSex())
                .setText(R.id.m_rcontact, entity.getContact())
                .setText(R.id.m_rschool, entity.getSchool())
                .setText(R.id.m_rposition, entity.getRposition())
                .setText(R.id.m_rskill, entity.getSkill())
                .setText(R.id.m_rexprience, entity.getExprience())
                .itemView.setTag(entity);

    }
}
